{erl_opts, [debug_info,
            {i, ["include"]},
            {d, xml_nif},
            {parse_transform, lager_transform},
            {platform_define, "^R1[56]", latin1_characters},
            {platform_define, "^R15", no_binary_to_integer},
            {platform_define, "^R15", no_crypto_hmac}, %% Ref: OTP commit ffef856
            {platform_define, "^R1[56]", only_builtin_types}]}. %% Ref: OTP commit b66e75c

{require_otp_vsn, "R?1[567]"}.

{port_specs,
 [{".*", "priv/lib/tls_drv.so", ["c_src/tls_drv.c"], [{env, [{"LDFLAGS", "$LDFLAGS -lssl"}]}]},
  {".*", "priv/lib/ejabberd_zlib_drv.so", ["c_src/ejabberd_zlib_drv.c"], [{env, [{"LDFLAGS", "$LDFLAGS -lz"}]}]},
  {".*", "priv/lib/sha_drv.so", ["c_src/sha_drv.c"], [{env, [{"LDFLAGS", "$LDFLAGS -lcrypto"}]}]},
  {".*", "priv/lib/xml.so", ["c_src/xml.c"], []},
  {".*", "priv/lib/expat_erl.so", ["c_src/expat_erl.c"], [{env, [{"LDFLAGS", "$LDFLAGS -lexpat"}]}]}]}.

{xref_checks, [undefined_function_calls,
               undefined_functions,
               locals_not_used,
               exports_not_used,
               deprecated_function_calls,
               deprecated_functions]}.

{cover_enabled, true}.
{cover_print_enabled, true}.
{cover_export_enabled, true}.
